package model;

import java.io.Serializable;

public class EmployeeItemDBModel extends DbModel implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    public static final int ITEM = 0;
    public static final int SECTION = 1;

    public int type = EmployeeItemDBModel.ITEM;
    public String EmplID;
    public String Name;
    public String DeptID;
    public String DeptAndPosStr;
    public String DeptName;
    public String LoginName;
    public boolean checked=false;

    public int sectionPosition;
    public int listPosition;

    public EmployeeItemDBModel() {

    }
    public EmployeeItemDBModel(int type, String Name) {
        this.type = type;
        this.Name = Name;
    }
    public EmployeeItemDBModel(String ID,String Name,String DeptID,String DeptName,String DeptAndPosStr,String LoginName) {
        this.EmplID = ID;
        this.Name = Name;
        this.DeptID = DeptID;
        this.LoginName = LoginName;
        this.DeptAndPosStr = DeptAndPosStr;
        this.DeptName = DeptName;
    }

    @Override
    public String toString() {
        return "EmployeeItemDBModel{" +
                "type=" + type +
                ", EmplID='" + EmplID + '\'' +
                ", Name='" + Name + '\'' +
                ", DeptID='" + DeptID + '\'' +
                ", DeptAndPosStr='" + DeptAndPosStr + '\'' +
                ", DeptName='" + DeptName + '\'' +
                ", LoginName='" + LoginName + '\'' +
                ", checked=" + checked +
                ", sectionPosition=" + sectionPosition +
                ", listPosition=" + listPosition +
                '}';
    }
}
